<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
  // Storage中存储的数据类型全部都是字符串
  console.log(localStorage.username);
  console.log(localStorage["username"]);
  console.log(localStorage.getItem("username"));

  console.log(localStorage.getItem("age"))
  console.log(localStorage.getItem("sex"))
</script>
</html>